<template>
<div>Hello World！</div>
</template>

<script setup lang="ts">
// import {ElMessage} from "element-plus";
// import Global from "@/store/Global";
import WebSocketService from "@/manage/WebSocketService";
import request from "@/tool/Request/Request";
import {DeviceDataType} from "@/config/Declare";

WebSocketService.addDeviceEvent('2ebe5490-a61a-11ee-866e-3dcf5cc99f7e',[DeviceDataType.Ts],(data)=>{
  for (let item in data.data){
    let d = data.data[item][0];
    console.log(d.length)
  }
})
request.getUserInfo().then(res=>{
  console.log("用户信息:",res)
})

</script>

<style scoped>

</style>
